package com.huluobo.high3videoproject.setting.model;

import com.huluobo.high3videoproject.bean.UpdateBeanResult;
import com.huluobo.high3videoproject.net.BaseModel;
import com.huluobo.high3videoproject.setting.presenter.SettingContract;

import io.reactivex.Observable;
import okhttp3.MultipartBody;

public class SettingModel extends BaseModel implements SettingContract.Model {
    @Override
    public Observable<UpdateBeanResult> updateAddress(String address) {
        return apiService.updateAddress(address);
    }

    @Override
    public Observable<UpdateBeanResult> updateBirth(String birth) {
        return apiService.updaterBirth(birth);
    }

    @Override
    public Observable<UpdateBeanResult> updateIcon(MultipartBody.Part part) {
        return apiService.updateIcon(part);
    }

    @Override
    public Observable<UpdateBeanResult> updateNickName(String nickName) {
        return apiService.updateNickName(nickName);
    }
}
